<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>登录-倍倍利</title>
	<link rel="stylesheet" type="text/css" href="{{ 'resources/web/css/base.css' }}">
	<link rel="stylesheet" type="text/css" href="{{ 'resources/web/css/loginregister.css' }}">
	<link rel="icon" href="{{asset('resources/web/images/logo-icon.png')}}" type="image/x-icon"/>
</head>
<body>
<!--login header-->
<div class="reglogin-header wrap clearfix">
	<div class="logo"><a href="{{ $logo->link }}"><img src="{{ asset($logo->image) }}" alt="倍倍利" style="height: 40px;width: 120px;"></a></div>
	<div class="page-title">登录</div>
	<div class="reglogin-header-right R">
		<ul class="top-nav clearfix">
			<li><a href="/?navigation_id=0">首页</a></li>
			<li><a href="#"><i class="ico-mb"></i>手机客户端</a></li>
		</ul>
		<div class="top-tel">服务热线：400-960-2388</div>
	</div>
</div>
<!--login header /-->
<!--container-->
<div class="reglogin-container wrap clearfix">
	<div class="leftbanner" style="background-image:url({{ asset($ad->image) }});">
		<a href="{{ $ad->link }}" title="{{ $ad->name }}"></a>
	</div>
	<div class="right-form">
		<div class="right-form-title">
			<span class="R">没有账号？<a href="{{ action('Auth\AuthController@register') }}">免费注册</a></span>
			<h3>登录</h3>
		</div>
		<form method="post" action="{{ action('Auth\AuthController@loginIn') }}" class="form-validation">
			{{ csrf_field() }}
			@foreach ($errors->all() as $error)
				<div class="error_messages error-tips" style="display: block;color:orangered;">{{ $error }}</div>
				@endforeach
		<!--表单 验证判断  错误：error，   正确：correct -->
			<div class="form-item">
				<label>
					<i class="ico-user"></i>
					<input type="tel" name="username" class="txt" placeholder="手机号/邮箱/用户名" data-rule-required="true" data-rule-minLength="6">
				</label>
			</div>
			<div class="form-item">
				<label>
					<i class="ico-lock"></i>
					<input type="password" name="password" class="txt" placeholder="请输入登录密码" data-rule-required="true" data-rule-minLength="6">
				</label>
			</div>
		<!-- 	<div class="form-item">	
				<label class="form-msg"><input type="text" class="stxt" placeholder="请输入图形验证码" name="captcha" data-rule-required="true" data-msg-required="必须填写验证码" data-rule-remote="{{ action('Utils\UtilsController@captcha_check') }}" data-msg-remote="图片验证码错误"></label>
				<img class="reg-captcha" title="点击刷新验证码" src="{{ action('Utils\UtilsController@captcha') }}" height="36" width="140" onclick="javascript:newgdcode(this,this.src);" >
			</div> -->
			<div class="user-pact text-right">
				<a href="{{ action('Auth\AuthController@resetPasswordOne') }}">忘记密码？</a>
			</div>
			<button type="submit" class="right-form-submit">立即登录</button>
		</form>
	</div>
</div>
<!--container /-->
<!--login bottom-->
<div class="login-bottom-wrap">
	<div class="bgleft"></div>
	<div class="bgright"></div>
	<div class="login-bottom">
		<a class="download" href="#">点击下载客户端</a>
	</div>
</div>
<!--login bottom /-->
<!--footer-->
<div class="reglogin-footer">
	<div class="copyright wrap">
		<p>Copyright ©  2014倍倍利 版权所有     |    重庆倍倍利金服科技有限公司     |     ICP备案号：渝ICP备14050900号-2</p>
	</div>
</div>
<!--footer /-->
<script type="text/javascript" src="{{ asset('resources/web/js/jquery.min.js') }}"></script>
<script type="text/javascript"
		src="{{ asset('resources/web/plugins/jquery.validate/jquery.validate.min.js') }}"></script>
<script type="text/javascript"
		src="{{ asset('resources/web/plugins/jquery.validate/additional-methods.min.js') }}"></script>
<script src="{{ asset('resources/web/plugins/jquery.validate/localization/messages_zh.js') }}"></script>
<script type="text/javascript">
	function newgdcode(obj, url) {
		obj.src = url + '?nowtime=' + new Date().getTime();
	}
	$(function () {
		$('form.form-validation').validate({
			errorElement: 'div',
			errorPlacement: function (error, element) {
				error.addClass('help-block error-tips').appendTo(element.parent().parent());
			},
			success: function (label, element) {
				label.remove();
			}
		});
		$('input').focus(function(){
			$('.error_messages').remove();
		});
	});

</script>
@include('web.partials.baidu')
</body>
</html>